package com.ruoyi.project.drug.service.impl;

import com.ruoyi.project.drug.domain.Drug_Supplier;
import com.ruoyi.project.drug.mapper.Drug_SupplierMapper;
import com.ruoyi.project.drug.service.IDrug_SupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Drug_SupplierServiceImpl implements IDrug_SupplierService {
    @Autowired
    private Drug_SupplierMapper drug_supplierMapper;

    /*
    * 查询所有供应商信息
    * */
    @Override
    public List<Drug_Supplier> selectDrug_SupplierList(Drug_Supplier drug_supplier) {
        return drug_supplierMapper.selectDrug_SupplierList(drug_supplier);
    }

    /*
    * 添加供应商信息
    * */
    @Override
    public int insertDrug_Supplier(Drug_Supplier drug_supplier) {
        return drug_supplierMapper.insertDrug_Supplier(drug_supplier);
    }

    /*
    * 按条件查询供应商信息
    * */
    @Override
    public Drug_Supplier selectDrug_SupplierById(Long id) {
        return drug_supplierMapper.selectDrug_SupplierById(id);
    }

    /*
    * 修改供应商信息
    * */
    @Override
    public int updateDrug_Supplier(Drug_Supplier drug_supplier) {
        return drug_supplierMapper.updateDrug_Supplier(drug_supplier);
    }

    /*
     * 删除供应商信息
     * */
    @Override
    public int deleteDrug_SupplierById(Long[] ids) {
        return drug_supplierMapper.deleteDrug_SupplierById(ids);
    }


}
